# import os
# import PySide2
#
# dirname = os.path.dirname(PySide2.__file__)
# plugin_path = os.path.join(dirname, 'plugins', 'platforms')
# os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path
#
# import sys, os
# if hasattr(sys, 'frozen'):
#     os.environ['PATH'] = sys._MEIPASS + ";" + os.environ['PATH']
from PyQt5.QtWidgets import QApplication
import sys
from GUI.GUIController import MyMainWindow

# pyinstaller -F -w main.py

def run_gui():
    app = QApplication(sys.argv)
    app.addLibraryPath('./ plugins')
    myWin = MyMainWindow()
    myWin.show()
    sys.exit(app.exec_())

if __name__ == '__main__':
    run_gui()